-- GENERATED SPELL FOR [Orebor Harborage Defender] --


function spell0_18943(pUnit, Event) --@Revenge,n/a--
pUnit:FullCastSpellOnTarget(12170,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18943', 660, 1)
end

function spell1_18943(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(12169,pUnit)
pUnit:RegisterEvent('Sorts_18943', 5310, 1)
end

function Sorts_18943(pUnit, Event)
local choix_sorts_18943 = math.random(0, 1)
if choix_sorts_18943 == 0 then
pUnit:RegisterEvent('spell0_18943', 1, 1)
end
if choix_sorts_18943 == 1 then
pUnit:RegisterEvent('spell1_18943', 1, 1)
end
end

function mob18943_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18943', math.random(1500, 3000), 1)
end

function mob18943_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18943_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18943_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18943, 1, 'mob18943_Action')
RegisterUnitEvent(18943, 2, 'mob18943_Leave')
RegisterUnitEvent(18943, 3, 'mob18943_Kill')
RegisterUnitEvent(18943, 4, 'mob18943_Die')
